package com.steel.yfmall.cloud.assistant.goods.impl;

import com.steel.yfmall.cloud.assistant.dto.para.goods.ProductSellerGoodsParam;
import com.steel.yfmall.cloud.assistant.dto.result.goods.ProductSellerGoodsResult;
import com.steel.yfmall.cloud.assistant.goods.ProductSellerGoodsOtherService;
import com.steel.yfmall.cloud.assistant.goods.mapper.ProductSellerGoodsOtherMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙飞
 * @version 1.0
 * @since 2021/01/11 星期一 17:11
 */

@Service
public class ProductSellerGoodsOtherServiceImpl implements ProductSellerGoodsOtherService {

    @Override
    public List<ProductSellerGoodsResult> selectByProductSysCodeList(List<String> goodsSnList) {
        ProductSellerGoodsParam productSellerGoodsParam = new ProductSellerGoodsParam();
        productSellerGoodsParam.setProductSysCodeList(goodsSnList);
        return productSellerGoodsOtherMapper.selectProductSellerGoodsInfo(productSellerGoodsParam);
    }

    @Override
    public String selectProductClassByGoodSn(String goodsSn) {
        return productSellerGoodsOtherMapper.selectProductClassByGoodSn(goodsSn);
    }

    @Resource
    private ProductSellerGoodsOtherMapper productSellerGoodsOtherMapper;//自定义mapper
}
